package com.ftg.learn.mapper;

import com.ftg.learn.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;


@Mapper
public interface UserMapper {
    //通过前台数据得到User_id。
    @Select("select * from user where user_name = #{arg0} and user_password = #{arg1}")
    public User login(String user_name,String user_password);

    //通过前台数据验证账号及密码是否正确。
    @Select("select * from user where user_name = #{arg0} and user_password = #{arg1}")
    public int check(String user_name,String user_password);


}
